package cn.shaoxiongdu.sx.common.utils.web.model.vo.base;

import lombok.AllArgsConstructor;
import lombok.Getter;
/**
 * @Author 杜少雄 (email@shaoxiongdu.cn)
 * @CreateDate 2025/7/30 11:06
 * @CopyRight (C) CopyRight 杜少雄 2025
 * @Description 通用http响应枚举
 */
@Getter
@AllArgsConstructor
public enum REnum {

    SUCCESS(200, "操作成功"),

    CLIENT_ERROR_AUTH_NOT_LOGIN(401, "未登陆"),
    CLIENT_ERROR_AUTH_LOGIN(402, "登陆失败"),
    CLIENT_ERROR_AUTH_OVERDUE(403, "登陆过期"),
    CLIENT_ERROR_PARAM(405, "参数校验失败"),

    SERVER_ERROR(500, "服务器内部错误");

    /**
     * 响应状态码
     */
    private final int code;

    /**
     * 响应状态消息
     */
    private final String message;

}
